let nav=['index','students','classinfo','school','major','teacher','course']
var dataform={'schooldata':null,'studentsdata1':Array(),'studentsdata':Array()}
async function hideH5(navList,classname){
    console.log(classname);
    for (const i of navList){
        $(`.${i}`).hide()
    }

    $(`.${classname}`).show()
}
$('#index').click(async ()=>{
    await hideH5(navList=nav,classname='index')
   
})
$('#teacher').click(async ()=>{
    await hideH5(navList=nav,classname='teacher')
   
})
$('#school').click(async ()=>{
    await hideH5(navList=nav,classname='school')
   
})
$('#major').click(async ()=>{
    await hideH5(navList=nav,classname='major')
})
$('#students').click(async ()=>{
   
    await hideH5(navList=nav,classname='students')
})
$('#classinfo').click(async ()=>{
   
    await hideH5(navList=nav,classname='classinfo');
})
$('#course').click(async ()=>{
    await hideH5(navList=nav,classname='course');
})